package com.getword.mongodao;

import com.getword.domain.Comments;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface CommentsRepository extends MongoRepository<Comments, String> {
    Comments findCommentsById(String id);
    List<Comments> findCommentsByArticleId(String articleId);
}
